import request from '@/utils/request.js'
class Api {
  gameDetail(data) {
    return request({
      url: 'api/mine/gameDetail ',
      method: 'POST',
      data
    })
  }
  gameStart(data) {
    return request({
      url: 'api/mine/gameStart ',
      method: 'POST',
      data
    })
  }
  gameSub(data) {
    return request({
      url: 'api/mine/gameSub ',
      method: 'POST',
      data
    })
  }
  gameStart(data) {
    return request({
      url: 'api/mine/gameStart',
      method: 'POST',
      data
    })
  }
  gameEnd(data) {
    return request({
      url: 'api/mine/gameEnd',
      method: 'POST',
      data
    })
  }
  drawlist(data) {
    return request({
      url: 'api/mine/drawlist',
      method: 'POST',
      data
    })
  }
  boxMineDetail(data) {
    return request({
      url: 'api/mine/boxMineDetail',
      method: 'POST',
      data
    })
  }
  getRuleDetails(data) {
    return request({
      url: 'api/index/getDetails',
      method: 'POST',
      data
    })
  }
  // const res = await http.request({
  //   url: '/api/index/getDetails',
  //   method: 'POST',
  //   data: {
  //     id: 11,
  //   },
  // })
  // rulepopup.value.open('center')
  // ruleStrings.value = res.data.details
}
export default Api